﻿<UserControl 
	x:Class="System.Windows.Controls.DataGridToolBarControl.FilterParameterUC"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"
  d:DesignHeight="200" d:DesignWidth="200">
	<!--<UserControl.Resources>
		<res:LocalizedStrings x:Key="ls" xmlns:res ="clr-namespace:System.Windows.Controls" />
	</UserControl.Resources>-->

	<Border x:Name="LayoutRoot"  Padding="6" Width="155" Height="110"
					BorderThickness="2" CornerRadius="6" BorderBrush="#FF283B89"   >

		<Grid  Height="Auto">
			<StackPanel Orientation="Vertical">
				<!--<TextBlock x:Name="bloLabel" Text="Název"  TextWrapping="Wrap" HorizontalAlignment="Left"  VerticalAlignment="Center" d:LayoutOverrides="HorizontalAlignment" Grid.Column="1" Margin="0" />-->
				<ComboBox x:Name="comLabel"  HorizontalAlignment="Stretch"  VerticalAlignment="Center" Margin="0,0,0,5" MinHeight="23" />

				<TextBox x:Name="txtValue"  Text="" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="0"  />

				
				<Grid Margin="0,4,0,0">
				<ComboBox x:Name="comOperator" Height="20" VerticalAlignment="Bottom" HorizontalAlignment="Left" Grid.Row="2" Width="48"
                    SelectedValuePath="Value" Grid.Column="1">
					<ComboBox.ItemTemplate>
						<DataTemplate>
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="25" />
									<ColumnDefinition Width="130" />
								</Grid.ColumnDefinitions>
								<TextBlock Grid.Column="0"  Text="{Binding Mark}"  />
								<TextBlock Grid.Column="1" Text="{Binding Text}"  />
							</Grid>
						</DataTemplate>
					</ComboBox.ItemTemplate>
				</ComboBox>
				<StackPanel Margin="0,5,0,0" HorizontalAlignment="Right" VerticalAlignment="Bottom" Orientation="Horizontal">
						<Button  x:Name="buOK"  Width="22">
							<Grid Height="10" Width="10"   >
								<Polygon Fill="#FF3399FF" Points="0,0,3,5,3,10,7,10,7,5,10,0" />
							</Grid>
						</Button>
						<Button  x:Name="buOKPlus"  Width="22"  Margin="2,0,0,0"  >
							<Canvas Height="10" Width="14">
								<Polygon Canvas.Left="4"  Fill="#FF3399FF" Points="0,0,3,5,3,10,7,10,7,5,10,0" />
								<Polyline Points="0,6,8,6" Stroke="Red" StrokeThickness="2"  />
								<Polyline Points="4,2,4,10" Stroke="Red" StrokeThickness="2"  />
							</Canvas>
						</Button>
						<Button  x:Name="buCancel" Content="x" Width="22" Margin="2,0,0,0" >
						</Button>
					</StackPanel>
				</Grid>
			</StackPanel>
		</Grid>
		<Border.Background>
			<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
				<GradientStop Color="#FFE8EBEB" Offset="0" />
				<GradientStop Color="#FFCBCBCB" Offset="1" />
			</LinearGradientBrush>
		</Border.Background>
	</Border>
</UserControl>
